import request from '@/utils/request/request';

// 分页查询API数据
export function getListData(params: any) {
  return request.get('/api/procurement/infra/unique-control-detail/page', {
    params,
  });
}

// 新增API
export function addList(data: any) {
  return request.post('/api/procurement/infra/machining-content', data);
}

// 修改API
export function updateListData(data: any) {
  return request.put('/api/procurement/infra/machining-content', data);
}

// 根据APIid查API详细信息
export function getDateilsData(id: any) {
  return request.get(`/api/procurement/infra/machining-content/${id}`);
}

// 列表作废
export function voidList(id: any) {
  return request.put(`/api/procurement/infra/machining-content/${id}`);
}
// 多选作废
export function listVoid(id: any) {
  return request.put(`/api/procurement/infra/machining-content/`, {
    id,
  });
}
// 列表删除API
export function listDelete(id: any) {
  return request.delete(`/api/infra/form-api/${id}`);
}
// 多选删除API
export function deleteList(id: any) {
  return request.delete('/api/procurement/infra/machining-content/', {
    id,
  });
}
